import React, { Component } from 'react';
import {
  BrowserRouter as Router,
  Route,
  Link
} from 'react-router-dom'


import Home from './component/home'
import News from './component/news'


class App extends Component {
  render() {
    return (
      <Router>
        <div>
          <Route exact path="/" component={Home} />
          <Route path="/news/:id" component={News} />
        </div>
      </Router>
    );
  }
}

export default App